INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/libayfly -I$(top_srcdir)/libayfly/z80ex -I$(top_srcdir)/libayfly/z80ex/include $(GUI_CXXFLAGS) $(all_includes)
SUBDIRS = libayfly

bin_PROGRAMS = aychip
aychip_SOURCES = chipFrame.cpp chipplayerApp.cpp common.cpp Player.cpp PlayList.cpp PlayListItem.cpp thread.cpp

if IS_UNIX
EXTRAINCLUDES = $(SDL_CFLAGS)
EXTRALDADD = $(SDL_LIBS)
endif

if IS_WINDOWS
EXTRAINCLUDES = $(DX_CFLAGS)
EXTRALDADD = $(DX_LIBS)
endif

INCLUDES += $(EXTRAINCLUDES)

aychip_LDADD = $(top_builddir)/libayfly/libayfly.a $(GUI_LIBS) $(SDL_LIBS) $(DX_LIBS)

datarootdir = @datarootdir@
